package com.ruoyi.project.charging.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.charging.mapper.CChargingPointMapper;
import com.ruoyi.project.charging.domain.CChargingPoint;
import com.ruoyi.project.charging.service.ICChargingPointService;

/**
 * 设备测点Service业务层处理
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
@Service
public class CChargingPointServiceImpl implements ICChargingPointService 
{
    @Autowired
    private CChargingPointMapper cChargingPointMapper;

    /**
     * 查询设备测点
     * 
     * @param pointId 设备测点主键
     * @return 设备测点
     */
    @Override
    public CChargingPoint selectCChargingPointByPointId(Long pointId)
    {
        return cChargingPointMapper.selectCChargingPointByPointId(pointId);
    }

    /**
     * 查询设备测点列表
     * 
     * @param cChargingPoint 设备测点
     * @return 设备测点
     */
    @Override
    public List<CChargingPoint> selectCChargingPointList(CChargingPoint cChargingPoint)
    {
        return cChargingPointMapper.selectCChargingPointList(cChargingPoint);
    }

    /**
     * 新增设备测点
     * 
     * @param cChargingPoint 设备测点
     * @return 结果
     */
    @Override
    public int insertCChargingPoint(CChargingPoint cChargingPoint)
    {
        return cChargingPointMapper.insertCChargingPoint(cChargingPoint);
    }

    /**
     * 修改设备测点
     * 
     * @param cChargingPoint 设备测点
     * @return 结果
     */
    @Override
    public int updateCChargingPoint(CChargingPoint cChargingPoint)
    {
        return cChargingPointMapper.updateCChargingPoint(cChargingPoint);
    }

    /**
     * 批量删除设备测点
     * 
     * @param pointIds 需要删除的设备测点主键
     * @return 结果
     */
    @Override
    public int deleteCChargingPointByPointIds(Long[] pointIds)
    {
        return cChargingPointMapper.deleteCChargingPointByPointIds(pointIds);
    }

    /**
     * 删除设备测点信息
     * 
     * @param pointId 设备测点主键
     * @return 结果
     */
    @Override
    public int deleteCChargingPointByPointId(Long pointId)
    {
        return cChargingPointMapper.deleteCChargingPointByPointId(pointId);
    }
}
